﻿using System;
using Microsoft.Xna.Framework;

namespace Serious
{
    public struct Circle2
    {
        public Vector2 Center;
        public Single Radius;

        public Rectangle2 Bounds
        {
            get
            {
                Vector2 s = new Vector2(Radius);
                return new Rectangle2(Center - s, s * 2.0f);
            }
        }

        public Circle2 (Vector2 center, Single radius)
        {
            Center = center;
            Radius = radius;
        }
    }
}
